//
//  UIColor+Extension.swift
//  weiboFirst
//
//  Created by ZhouRobert on 15/7/9.
//  Copyright © 2015年 ZhouRobert. All rights reserved.
//

import UIKit

extension UIColor {
    
    class func randomColor() ->UIColor {
        
        return UIColor(red: randomValue(), green: randomValue(), blue: randomValue(), alpha: 1.0)
    }
    
    private class func randomValue() -> CGFloat {
        return CGFloat(arc4random_uniform(256)) / 255
    }
}
